#include <gtest/gtest.h>
#include <iostream>
#include "qlib/all.h"


using namespace qlib;

TEST(ReadGdsTest, BasicAssertion) {
  // std::string fileName = "E:/T/gds/138bit_line12.gds ";
  // std::set<Tag> shape_tags;
  // ErrorCode err;
  // Library::s_ptr library = DB::read_gds(fileName.c_str(), 0.001, 0.001, &shape_tags, &err);
  // std::cout << (int)(err) << std::endl;
  EXPECT_EQ(1, 1);
}

TEST(ReadOasTest, BasicAssertion) {
  std::string fileName = "C:/Users/xqf/Desktop/project/qlayout-test/data/gds/a.oas";
  std::set<Tag> shape_tags;
  qlib::ErrorCode err = qlib::ErrorCode::NoError;
  auto lib = qlib::DB::read_oas(fileName, 1e-6, 0, &err);
  lib->load();

  std::cout << (int)(err) << std::endl;
  EXPECT_EQ(1, 1);
}

int main(int argc, char* argv[]) {

  ::testing::InitGoogleTest(&argc, argv);
  return RUN_ALL_TESTS();
}
